﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="shortcut icon" href=" /favicon.ico" />
    <style>
      html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
      }
      
      div.outer {
        /* 为了看清整个 inner element 的轮廓，这里设置 inner element 的边框为黑色，1px */
        //border: 1px solid black;
        width: 600px;
        height: 400px;
        font-size: 12px;
        position: absolute;
        top: 50%;
        left: 50%;
        /* margin-left = -width/2 = -600/2 - -300 */
        margin-left: -300px;
        /* margin-top = -height/2 = -400/2 = -200 */
        margin-top: -200px;
        
        display: table;
      }
      
      div.inner {
        /* 必须的 */
        _position: absolute;
        _top: 50%;
        
        display: table-cell;
        vertical-align: middle;
        /* 水平居中 */
        text-align: center;
      }
      
      div.content {
        /* 必须的 */
        _position: relative;
        _top: -50%;
      }
    </style>
  </head>
  
  <body>
    <div class="outer"> 
      <div class="inner"> 
        <div class="content">
        <img src="/images/error.jpg" alt="返回登录" /><br/>
        <div>还有<span id="delay" style="color:#FF0000;">3</span>秒钟自动返回登录，如果没有跳转请点击<a href="/index.html" style="color:red;">这里</a></div>
        </div>
      </div>
    </div>
    <script type="text/javascript">
        function runtime() {
            document.getElementById('delay').innerHTML=document.getElementById('delay').innerHTML - 1;
            if (document.getElementById('delay').innerHTML <= 0) {
                location.href = '/index.html';
            }
            setTimeout("runtime()",1000);
        }
        runtime();
    </script>  
  </body>
</html>
